package com.yztc.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator on 2017/7/25.
 */
@Controller
@RequestMapping("/home")
public class AccountController {

    @RequestMapping(value = "/test",produces = "application/json;charset=utf-8",
            consumes = "test/html",params = {"name","key=12","!ke","key2!=133"},
            headers = {"key:11"}
    )
    public String test(){
    return null;
    }

    @RequestMapping("/test2/{uid}")
    public String test1(@PathVariable("uid") String uid){
        return null;

    }
//    @RequestMapping("/tes?")
    @RequestMapping("/**/add?")
    public void test2(){

    }
}
